home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 1999 November / maximum-cd-1999-11.iso / Battlezone II / Disk1 / data1.cab / Program_Executable_Files / data.pak / config_GAME_bzgame_command.cfg < prev    next >
Encoding:
Text File  |  1999-08-25  |  18.8 KB  |  933 lines

  1. // ========================
  2. // BATTLEZONE COMMAND PANEL
  3. // ========================
  4.  
  5. // define the control panel colors
  6. ConfigureInterface()
  7. {
  8.     DefineColorGroup("COMMANDTEXT")
  9.     {
  10.         // unselected, unhighlit, undisabled, unghosted
  11.         Foreground(0, 190, 199, 254, 255);
  12.         Background(0, 0, 127, 255, 127);
  13.         Gradient(0, 0, 63, 127, 127);
  14.  
  15.         // selected, unhighlit, undisabled, unghosted
  16.         Foreground(1, 255, 255, 255, 255);
  17.         Background(1, 190, 200, 255, 255);
  18.         Gradient(1, 122, 142, 226, 255);
  19.  
  20.         // unselected, highlit, undisabled, unghosted
  21.         Foreground(2, 255, 255, 255, 255);
  22.         Background(2, 127, 191, 255, 127);
  23.         Gradient(2, 63, 95, 127, 127);
  24.  
  25.         // selected, highlit, undisabled, unghosted
  26.         Foreground(3, 255, 255, 255, 255);
  27.         Background(3, 255, 255, 255, 127);
  28.         Gradient(3, 127, 127, 127, 127);
  29.  
  30.         // unselected, unhighlit, disabled, unghosted
  31.         Foreground(4, 153, 153, 153, 255);
  32.         Background(4, 0, 127, 255, 127);
  33.         Gradient(4, 0, 63, 127, 127);
  34.  
  35.         // selected, unhighlit, disabled, unghosted
  36.         Foreground(5, 255, 255, 255, 255);
  37.         Background(5, 190, 200, 255, 255);
  38.         Gradient(5, 122, 142, 226, 255);
  39.  
  40.         // unselected, highlit, disabled, unghosted
  41.         Foreground(6, 255, 255, 255, 255);
  42.         Background(6, 127, 191, 255, 127);
  43.         Gradient(6, 63, 95, 127, 127);
  44.  
  45.         // selected, highlit, disabled, unghosted
  46.         Foreground(7, 255, 255, 255, 255);
  47.         Background(7, 255, 255, 255, 127);
  48.         Gradient(7, 127, 127, 127, 127);
  49.  
  50.         // unselected, unhighlit, undisabled, ghosted
  51.         Foreground(8, 190, 199, 254, 127);
  52.         Background(8, 0, 127, 255, 127);
  53.         Gradient(8, 0, 63, 127, 127);
  54.  
  55.         // selected, unhighlit, undisabled, ghosted
  56.         Foreground(9, 255, 255, 255, 255);
  57.         Background(9, 190, 200, 255, 255);
  58.         Gradient(9, 122, 142, 226, 255);
  59.  
  60.         // unselected, highlit, undisabled, ghosted
  61.         Foreground(10, 255, 255, 255, 255);
  62.         Background(10, 127, 191, 255, 127);
  63.         Gradient(10, 63, 95, 127, 127);
  64.  
  65.         // selected, highlit, undisabled, ghosted
  66.         Foreground(11, 255, 255, 255, 255);
  67.         Background(11, 255, 255, 255, 127);
  68.         Gradient(11, 127, 127, 127, 127);
  69.  
  70.         // unselected, unhighlit, disabled, ghosted
  71.         Foreground(12, 76, 76, 76, 255);
  72.         Background(12, 0, 127, 255, 127);
  73.         Gradient(12, 0, 63, 127, 127);
  74.  
  75.         // selected, unhighlit, disabled, ghosted
  76.         Foreground(13, 255, 255, 255, 255);
  77.         Background(13, 190, 200, 255, 255);
  78.         Gradient(13, 122, 142, 226, 255);
  79.  
  80.         // unselected, highlit, disabled, ghosted
  81.         Foreground(14, 255, 255, 255, 255);
  82.         Background(14, 127, 191, 255, 127);
  83.         Gradient(14, 63, 95, 127, 127);
  84.  
  85.         // selected, highlit, disabled, ghosted
  86.         Foreground(15, 255, 255, 255, 255);
  87.         Background(15, 255, 255, 255, 127);
  88.         Gradient(15, 127, 127, 127, 127);
  89.     }
  90.  
  91.     DefineColorGroup("COMMANDICON")
  92.     {
  93.         // unselected, unhighlit, undisabled, unghosted
  94.         Foreground(0, 190, 199, 254, 255);
  95.         Background(0, 190, 199, 254, 255);
  96.         Gradient(0, 190, 199, 254, 255);
  97.  
  98.         // selected, unhighlit, undisabled, unghosted
  99.         Foreground(1, 255, 255, 255, 255);
  100.         Background(1, 255, 255, 255, 255);
  101.         Gradient(1, 255, 255, 255, 255);
  102.  
  103.         // unselected, highlit, undisabled, unghosted
  104.         Foreground(2, 255, 255, 255, 255);
  105.         Background(2, 255, 255, 255, 255);
  106.         Gradient(2, 255, 255, 255, 255);
  107.  
  108.         // selected, highlit, undisabled, unghosted
  109.         Foreground(3, 255, 255, 255, 255);
  110.         Background(3, 255, 255, 255, 255);
  111.         Gradient(3, 255, 255, 255, 255);
  112.  
  113.         // unselected, unhighlit, disabled, unghosted
  114.         Foreground(4, 153, 153, 153, 255);
  115.         Background(4, 153, 153, 153, 255);
  116.         Gradient(4, 153, 153, 153, 255);
  117.  
  118.         // selected, unhighlit, disabled, unghosted
  119.         Foreground(5, 255, 255, 255, 255);
  120.         Background(5, 255, 255, 255, 255);
  121.         Gradient(5, 255, 255, 255, 255);
  122.  
  123.         // unselected, highlit, disabled, unghosted
  124.         Foreground(6, 255, 255, 255, 255);
  125.         Background(6, 255, 255, 255, 255);
  126.         Gradient(6, 255, 255, 255, 255);
  127.  
  128.         // selected, highlit, disabled, unghosted
  129.         Foreground(7, 255, 255, 255, 255);
  130.         Background(7, 255, 255, 255, 255);
  131.         Gradient(7, 255, 255, 255, 255);
  132.  
  133.         // unselected, unhighlit, undisabled, ghosted
  134.         Foreground(8, 190, 199, 254, 127);
  135.         Background(8, 190, 199, 254, 127);
  136.         Gradient(8, 190, 199, 254, 127);
  137.  
  138.         // selected, unhighlit, undisabled, ghosted
  139.         Foreground(9, 255, 255, 255, 255);
  140.         Background(9, 255, 255, 255, 255);
  141.         Gradient(9, 255, 255, 255, 255);
  142.  
  143.         // unselected, highlit, undisabled, ghosted
  144.         Foreground(10, 255, 255, 255, 255);
  145.         Background(10, 255, 255, 255, 255);
  146.         Gradient(10, 255, 255, 255, 255);
  147.  
  148.         // selected, highlit, undisabled, ghosted
  149.         Foreground(11, 255, 255, 255, 255);
  150.         Background(11, 255, 255, 255, 255);
  151.         Gradient(11, 255, 255, 255, 255);
  152.  
  153.         // unselected, unhighlit, disabled, ghosted
  154.         Foreground(12, 76, 76, 76, 255);
  155.         Background(12, 76, 76, 76, 255);
  156.         Gradient(12, 76, 76, 76, 255);
  157.  
  158.         // selected, unhighlit, disabled, ghosted
  159.         Foreground(13, 255, 255, 255, 255);
  160.         Background(13, 255, 255, 255, 255);
  161.         Gradient(13, 255, 255, 255, 255);
  162.  
  163.         // unselected, highlit, disabled, ghosted
  164.         Foreground(14, 255, 255, 255, 255);
  165.         Background(14, 255, 255, 255, 255);
  166.         Gradient(14, 255, 255, 255, 255);
  167.  
  168.         // selected, highlit, disabled, ghosted
  169.         Foreground(15, 255, 255, 255, 255);
  170.         Background(15, 255, 255, 255, 255);
  171.         Gradient(15, 255, 255, 255, 255);
  172.     }
  173. }
  174.  
  175. //
  176. // CREATE INFO PANEL
  177. //
  178. CreateControl("InfoPanel", "WINDOW")
  179. {
  180.     Pos(50, 5);
  181.     Size(130, 48);
  182.     Style("TRANSPARENT");
  183.  
  184.     CreateControl("Group", "WINDOW")
  185.     {
  186.         Pos(0, 0);
  187.         Size(130, 44);
  188.         Style("TRANSPARENT");
  189.  
  190.         CreateControl("Title", "STATIC")
  191.         {
  192.             Pos(0, 0);
  193.             Size(170, 16);
  194.             Style("TRANSPARENT");
  195.             Font("MEDIUM");
  196.             JustifyText("LEFT");
  197.         }
  198.  
  199.         CreateControl("Hull0", "GAUGE")
  200.         {
  201.             ColorGroup("WHITE");
  202.             Pos(0, 16);
  203.             Size(3, 16);
  204.             Orientation("VERTICAL");
  205.             UseVar("control.command.hull0");
  206.         }
  207.         CreateControl("Ammo0", "GAUGE")
  208.         {
  209.             ColorGroup("WHITE");
  210.             Pos(3, 16);
  211.             Size(3, 16);
  212.             Orientation("VERTICAL");
  213.             UseVar("control.command.ammo0");
  214.         }
  215.  
  216.         CreateControl("Hull1", "GAUGE")
  217.         {
  218.             ColorGroup("WHITE");
  219.             Pos(12, 16);
  220.             Size(3, 16);
  221.             Orientation("VERTICAL");
  222.             UseVar("control.command.hull1");
  223.         }
  224.         CreateControl("Ammo1", "GAUGE")
  225.         {
  226.             ColorGroup("WHITE");
  227.             Pos(15, 16);
  228.             Size(3, 16);
  229.             Orientation("VERTICAL");
  230.             UseVar("control.command.ammo1");
  231.         }
  232.  
  233.         CreateControl("Hull2", "GAUGE")
  234.         {
  235.             ColorGroup("WHITE");
  236.             Pos(24, 16);
  237.             Size(3, 16);
  238.             Orientation("VERTICAL");
  239.             UseVar("control.command.hull2");
  240.         }
  241.         CreateControl("Ammo2", "GAUGE")
  242.         {
  243.             ColorGroup("WHITE");
  244.             Pos(27, 16);
  245.             Size(3, 16);
  246.             Orientation("VERTICAL");
  247.             UseVar("control.command.ammo2");
  248.         }
  249.  
  250.         CreateControl("Hull3", "GAUGE")
  251.         {
  252.             ColorGroup("WHITE");
  253.             Pos(36, 16);
  254.             Size(3, 16);
  255.             Orientation("VERTICAL");
  256.             UseVar("control.command.hull3");
  257.         }
  258.         CreateControl("Ammo3", "GAUGE")
  259.         {
  260.             ColorGroup("WHITE");
  261.             Pos(39, 16);
  262.             Size(3, 16);
  263.             Orientation("VERTICAL");
  264.             UseVar("control.command.ammo3");
  265.         }
  266.  
  267.         CreateControl("Hull4", "GAUGE")
  268.         {
  269.             ColorGroup("WHITE");
  270.             Pos(48, 16);
  271.             Size(3, 16);
  272.             Orientation("VERTICAL");
  273.             UseVar("control.command.hull4");
  274.         }
  275.         CreateControl("Ammo4", "GAUGE")
  276.         {
  277.             ColorGroup("WHITE");
  278.             Pos(51, 16);
  279.             Size(3, 16);
  280.             Orientation("VERTICAL");
  281.             UseVar("control.command.ammo4");
  282.         }
  283.  
  284.         CreateControl("Hull5", "GAUGE")
  285.         {
  286.             ColorGroup("WHITE");
  287.             Pos(60, 16);
  288.             Size(3, 16);
  289.             Orientation("VERTICAL");
  290.             UseVar("control.command.hull5");
  291.         }
  292.         CreateControl("Ammo5", "GAUGE")
  293.         {
  294.             ColorGroup("WHITE");
  295.             Pos(63, 16);
  296.             Size(3, 16);
  297.             Orientation("VERTICAL");
  298.             UseVar("control.command.ammo5");
  299.         }
  300.  
  301.         CreateControl("Hull6", "GAUGE")
  302.         {
  303.             ColorGroup("WHITE");
  304.             Pos(72, 16);
  305.             Size(3, 16);
  306.             Orientation("VERTICAL");
  307.             UseVar("control.command.hull6");
  308.         }
  309.         CreateControl("Ammo6", "GAUGE")
  310.         {
  311.             ColorGroup("WHITE");
  312.             Pos(75, 16);
  313.             Size(3, 16);
  314.             Orientation("VERTICAL");
  315.             UseVar("control.command.ammo6");
  316.         }
  317.  
  318.         CreateControl("Hull7", "GAUGE")
  319.         {
  320.             ColorGroup("WHITE");
  321.             Pos(84, 16);
  322.             Size(3, 16);
  323.             Orientation("VERTICAL");
  324.             UseVar("control.command.hull7");
  325.         }
  326.         CreateControl("Ammo7", "GAUGE")
  327.         {
  328.             ColorGroup("WHITE");
  329.             Pos(87, 16);
  330.             Size(3, 16);
  331.             Orientation("VERTICAL");
  332.             UseVar("control.command.ammo7");
  333.         }
  334.  
  335.         CreateControl("Hull8", "GAUGE")
  336.         {
  337.             ColorGroup("WHITE");
  338.             Pos(96, 16);
  339.             Size(3, 16);
  340.             Orientation("VERTICAL");
  341.             UseVar("control.command.hull8");
  342.         }
  343.         CreateControl("Ammo8", "GAUGE")
  344.         {
  345.             ColorGroup("WHITE");
  346.             Pos(99, 16);
  347.             Size(3, 16);
  348.             Orientation("VERTICAL");
  349.             UseVar("control.command.ammo8");
  350.         }
  351.  
  352.         CreateControl("Hull9", "GAUGE")
  353.         {
  354.             ColorGroup("WHITE");
  355.             Pos(108, 16);
  356.             Size(3, 16);
  357.             Orientation("VERTICAL");
  358.             UseVar("control.command.hull9");
  359.         }
  360.         CreateControl("Ammo9", "GAUGE")
  361.         {
  362.             ColorGroup("WHITE");
  363.             Pos(111, 16);
  364.             Size(3, 16);
  365.             Orientation("VERTICAL");
  366.             UseVar("control.command.ammo9");
  367.         }
  368.     }
  369.  
  370.     CreateControl("Action", "STATIC")
  371.     {
  372.         Pos(0, 32);
  373.         Size(170, 16);
  374.         Style("TRANSPARENT");
  375.         Font("SMALL");
  376.         JustifyText("LEFT");
  377.     }
  378. }
  379.  
  380. //
  381. // CREATE ACTION PANEL
  382. //
  383. CreateControl("ActionPanel", "WINDOW")
  384. {
  385.     Pos(10, 61);
  386.     Size(185, 16);
  387.     Style("TRANSPARENT");
  388.  
  389.     CreateControl("Action", "BUTTON")
  390.     {
  391.         Pos(0, 0);
  392.         Size(185, 16);
  393.         Style("TRANSPARENT");
  394.         NotifyParent("Button::Press", "PressReticle");
  395.  
  396.         CreateControl("Key", "STATIC")
  397.         {
  398.             ColorGroup("COMMANDTEXT");
  399.             Pos(0, 0);
  400.             Size(60, 16);
  401.             Image("colorize.tga", 0, 0);
  402.             Font("MEDIUM");
  403.             JustifyText("RIGHT");
  404.             Text("Space");
  405.         }
  406.  
  407.         CreateControl("Text", "STATIC")
  408.         {
  409.             ColorGroup("COMMANDTEXT");
  410.             Pos(65, 0);
  411.             Size(120, 16);
  412.             Image("colorize.tga", 7, 0);
  413.             Font("SMALL");
  414.             JustifyText("LEFT");
  415.  
  416.             CreateControl("Cost", "STATIC")
  417.             {
  418.                 Style("TRANSPARENT");
  419.                 Geom("RIGHT");
  420.                 Pos(-8, 0);
  421.                 Size(32, 16);
  422.                 Font("TINY");
  423.                 JustifyText("RIGHT");
  424.             }
  425.         }
  426.     }
  427.  
  428.     OnEvent("PressReticle")
  429.     {
  430.         Cmd("control.command.reticle");
  431.     }
  432. }
  433.  
  434. //
  435. // CREATE COMMAND PANEL
  436. //
  437. CreateControl("CommandPanel", "WINDOW")
  438. {
  439.     Pos(10, 81);
  440.     Size(185, 193);
  441.     Style("TRANSPARENT");
  442.  
  443.     CreateControl("Cancel", "BUTTON")
  444.     {
  445.         Pos(0, 0);
  446.         Size(185, 16);
  447.         Style("TRANSPARENT");
  448.         NotifyParent("Button::Press", "PressCancel");
  449.  
  450.         CreateControl("Key", "STATIC")
  451.         {
  452.             ColorGroup("COMMANDTEXT");
  453.             Pos(20, 0);
  454.             Size(40, 16);
  455.             Image("colorize.tga", 0, 0);
  456.             Font("MEDIUM");
  457.             JustifyText("RIGHT");
  458.             Text("Tab");
  459.         }
  460.  
  461.         CreateControl("Text", "STATIC")
  462.         {
  463.             ColorGroup("COMMANDTEXT");
  464.             Pos(65, 0);
  465.             Size(120, 16);
  466.             Image("colorize.tga", 7, 0);
  467.             Font("SMALL");
  468.             JustifyText("LEFT");
  469.             Text("Close Menu");
  470.         }
  471.     }
  472.  
  473.     CreateControl("Command0", "BUTTON")
  474.     {
  475.         Pos(0, 20);
  476.         Size(185, 16);
  477.         Style("TRANSPARENT");
  478.         NotifyParent("Button::Press", "PressCommand0");
  479.  
  480.         CreateControl("Key", "STATIC")
  481.         {
  482.             ColorGroup("COMMANDTEXT");
  483.             Pos(40, 0);
  484.             Size(20, 16);
  485.             Image("colorize.tga", 0, 0);
  486.             Font("MEDIUM");
  487.             JustifyText("RIGHT");
  488.             Text("0");
  489.         }
  490.  
  491.         CreateControl("Text", "STATIC")
  492.         {
  493.             ColorGroup("COMMANDTEXT");
  494.             Pos(65, 0);
  495.             Size(120, 16);
  496.             Image("colorize.tga", 7, 0);
  497.             Font("SMALL");
  498.             JustifyText("LEFT");
  499.  
  500.             CreateControl("Cost", "STATIC")
  501.             {
  502.                 Style("TRANSPARENT");
  503.                 Geom("RIGHT");
  504.                 Pos(-8, 0);
  505.                 Size(32, 16);
  506.                 Font("TINY");
  507.                 JustifyText("RIGHT");
  508.             }
  509.         }
  510.     }
  511.  
  512.     CreateControl("Command1", "BUTTON")
  513.     {
  514.         Pos(0, 37);
  515.         Size(185, 16);
  516.         Style("TRANSPARENT");
  517.         NotifyParent("Button::Press", "PressCommand1");
  518.  
  519.         CreateControl("Key", "STATIC")
  520.         {
  521.             ColorGroup("COMMANDTEXT");
  522.             Pos(40, 0);
  523.             Size(20, 16);
  524.             Image("colorize.tga", 0, 0);
  525.             Font("MEDIUM");
  526.             JustifyText("RIGHT");
  527.             Text("1");
  528.         }
  529.  
  530.         CreateControl("Text", "STATIC")
  531.         {
  532.             ColorGroup("COMMANDTEXT");
  533.             Pos(65, 0);
  534.             Size(120, 16);
  535.             Image("colorize.tga", 7, 0);
  536.             Font("SMALL");
  537.             JustifyText("LEFT");
  538.  
  539.             CreateControl("Cost", "STATIC")
  540.             {
  541.                 Style("TRANSPARENT");
  542.                 Geom("RIGHT");
  543.                 Pos(-8, 0);
  544.                 Size(32, 16);
  545.                 Font("TINY");
  546.                 JustifyText("RIGHT");
  547.             }
  548.         }
  549.     }
  550.  
  551.     CreateControl("Command2", "BUTTON")
  552.     {
  553.         Pos(0, 54);
  554.         Size(185, 16);
  555.         Style("TRANSPARENT");
  556.         NotifyParent("Button::Press", "PressCommand2");
  557.  
  558.         CreateControl("Key", "STATIC")
  559.         {
  560.             ColorGroup("COMMANDTEXT");
  561.             Pos(40, 0);
  562.             Size(20, 16);
  563.             Image("colorize.tga", 0, 0);
  564.             Font("MEDIUM");
  565.             JustifyText("RIGHT");
  566.             Text("2");
  567.         }
  568.  
  569.         CreateControl("Text", "STATIC")
  570.         {
  571.             ColorGroup("COMMANDTEXT");
  572.             Pos(65, 0);
  573.             Size(120, 16);
  574.             Image("colorize.tga", 7, 0);
  575.             Font("SMALL");
  576.             JustifyText("LEFT");
  577.  
  578.             CreateControl("Cost", "STATIC")
  579.             {
  580.                 Style("TRANSPARENT");
  581.                 Geom("RIGHT");
  582.                 Pos(-8, 0);
  583.                 Size(32, 16);
  584.                 Font("TINY");
  585.                 JustifyText("RIGHT");
  586.             }
  587.         }
  588.     }
  589.  
  590.     CreateControl("Command3", "BUTTON")
  591.     {
  592.         Pos(0, 71);
  593.         Size(185, 16);
  594.         Style("TRANSPARENT");
  595.         NotifyParent("Button::Press", "PressCommand3");
  596.  
  597.         CreateControl("Key", "STATIC")
  598.         {
  599.             ColorGroup("COMMANDTEXT");
  600.             Pos(40, 0);
  601.             Size(20, 16);
  602.             Image("colorize.tga", 0, 0);
  603.             Font("MEDIUM");
  604.             JustifyText("RIGHT");
  605.             Text("3");
  606.         }
  607.  
  608.         CreateControl("Text", "STATIC")
  609.         {
  610.             ColorGroup("COMMANDTEXT");
  611.             Pos(65, 0);
  612.             Size(120, 16);
  613.             Image("colorize.tga", 7, 0);
  614.             Font("SMALL");
  615.             JustifyText("LEFT");
  616.  
  617.             CreateControl("Cost", "STATIC")
  618.             {
  619.                 Style("TRANSPARENT");
  620.                 Geom("RIGHT");
  621.                 Pos(-8, 0);
  622.                 Size(32, 16);
  623.                 Font("TINY");
  624.                 JustifyText("RIGHT");
  625.             }
  626.         }
  627.     }
  628.  
  629.     CreateControl("Command4", "BUTTON")
  630.     {
  631.         Pos(0, 88);
  632.         Size(185, 16);
  633.         Style("TRANSPARENT");
  634.         NotifyParent("Button::Press", "PressCommand4");
  635.  
  636.         CreateControl("Key", "STATIC")
  637.         {
  638.             ColorGroup("COMMANDTEXT");
  639.             Pos(40, 0);
  640.             Size(20, 16);
  641.             Image("colorize.tga", 0, 0);
  642.             Font("MEDIUM");
  643.             JustifyText("RIGHT");
  644.             Text("4");
  645.         }
  646.  
  647.         CreateControl("Text", "STATIC")
  648.         {
  649.             ColorGroup("COMMANDTEXT");
  650.             Pos(65, 0);
  651.             Size(120, 16);
  652.             Image("colorize.tga", 7, 0);
  653.             Font("SMALL");
  654.             JustifyText("LEFT");
  655.  
  656.             CreateControl("Cost", "STATIC")
  657.             {
  658.                 Style("TRANSPARENT");
  659.                 Geom("RIGHT");
  660.                 Pos(-8, 0);
  661.                 Size(32, 16);
  662.                 Font("TINY");
  663.                 JustifyText("RIGHT");
  664.             }
  665.         }
  666.     }
  667.  
  668.     CreateControl("Command5", "BUTTON")
  669.     {
  670.         Pos(0, 105);
  671.         Size(185, 16);
  672.         Style("TRANSPARENT");
  673.         NotifyParent("Button::Press", "PressCommand5");
  674.  
  675.         CreateControl("Key", "STATIC")
  676.         {
  677.             ColorGroup("COMMANDTEXT");
  678.             Pos(40, 0);
  679.             Size(20, 16);
  680.             Image("colorize.tga", 0, 0);
  681.             Font("MEDIUM");
  682.             JustifyText("RIGHT");
  683.             Text("5");
  684.         }
  685.  
  686.         CreateControl("Text", "STATIC")
  687.         {
  688.             ColorGroup("COMMANDTEXT");
  689.             Pos(65, 0);
  690.             Size(120, 16);
  691.             Image("colorize.tga", 7, 0);
  692.             Font("SMALL");
  693.             JustifyText("LEFT");
  694.  
  695.             CreateControl("Cost", "STATIC")
  696.             {
  697.                 Style("TRANSPARENT");
  698.                 Geom("RIGHT");
  699.                 Pos(-8, 0);
  700.                 Size(32, 16);
  701.                 Font("TINY");
  702.                 JustifyText("RIGHT");
  703.             }
  704.         }
  705.     }
  706.  
  707.     CreateControl("Command6", "BUTTON")
  708.     {
  709.         Pos(0, 122);
  710.         Size(185, 16);
  711.         Style("TRANSPARENT");
  712.         NotifyParent("Button::Press", "PressCommand6");
  713.  
  714.         CreateControl("Key", "STATIC")
  715.         {
  716.             ColorGroup("COMMANDTEXT");
  717.             Pos(40, 0);
  718.             Size(20, 16);
  719.             Image("colorize.tga", 0, 0);
  720.             Font("MEDIUM");
  721.             JustifyText("RIGHT");
  722.             Text("6");
  723.         }
  724.  
  725.         CreateControl("Text", "STATIC")
  726.         {
  727.             ColorGroup("COMMANDTEXT");
  728.             Pos(65, 0);
  729.             Size(120, 16);
  730.             Image("colorize.tga", 7, 0);
  731.             Font("SMALL");
  732.             JustifyText("LEFT");
  733.  
  734.             CreateControl("Cost", "STATIC")
  735.             {
  736.                 Style("TRANSPARENT");
  737.                 Geom("RIGHT");
  738.                 Pos(-8, 0);
  739.                 Size(32, 16);
  740.                 Font("TINY");
  741.                 JustifyText("RIGHT");
  742.             }
  743.         }
  744.     }
  745.  
  746.     CreateControl("Command7", "BUTTON")
  747.     {
  748.         Pos(0, 139);
  749.         Size(185, 16);
  750.         Style("TRANSPARENT");
  751.         NotifyParent("Button::Press", "PressCommand7");
  752.  
  753.         CreateControl("Key", "STATIC")
  754.         {
  755.             ColorGroup("COMMANDTEXT");
  756.             Pos(40, 0);
  757.             Size(20, 16);
  758.             Image("colorize.tga", 0, 0);
  759.             Font("MEDIUM");
  760.             JustifyText("RIGHT");
  761.             Text("7");
  762.         }
  763.  
  764.         CreateControl("Text", "STATIC")
  765.         {
  766.             ColorGroup("COMMANDTEXT");
  767.             Pos(65, 0);
  768.             Size(120, 16);
  769.             Image("colorize.tga", 7, 0);
  770.             Font("SMALL");
  771.             JustifyText("LEFT");
  772.  
  773.             CreateControl("Cost", "STATIC")
  774.             {
  775.                 Style("TRANSPARENT");
  776.                 Geom("RIGHT");
  777.                 Pos(-8, 0);
  778.                 Size(32, 16);
  779.                 Font("TINY");
  780.                 JustifyText("RIGHT");
  781.             }
  782.         }
  783.     }
  784.  
  785.     CreateControl("Command8", "BUTTON")
  786.     {
  787.         Pos(0, 156);
  788.         Size(185, 16);
  789.         Style("TRANSPARENT");
  790.         NotifyParent("Button::Press", "PressCommand8");
  791.  
  792.         CreateControl("Key", "STATIC")
  793.         {
  794.             ColorGroup("COMMANDTEXT");
  795.             Pos(40, 0);
  796.             Size(20, 16);
  797.             Image("colorize.tga", 0, 0);
  798.             Font("MEDIUM");
  799.             JustifyText("RIGHT");
  800.             Text("8");
  801.         }
  802.  
  803.         CreateControl("Text", "STATIC")
  804.         {
  805.             ColorGroup("COMMANDTEXT");
  806.             Pos(65, 0);
  807.             Size(120, 16);
  808.             Image("colorize.tga", 7, 0);
  809.             Font("SMALL");
  810.             JustifyText("LEFT");
  811.  
  812.             CreateControl("Cost", "STATIC")
  813.             {
  814.                 Style("TRANSPARENT");
  815.                 Geom("RIGHT");
  816.                 Pos(-8, 0);
  817.                 Size(32, 16);
  818.                 Font("TINY");
  819.                 JustifyText("RIGHT");
  820.             }
  821.         }
  822.     }
  823.  
  824.     CreateControl("Command9", "BUTTON")
  825.     {
  826.         Pos(0, 173);
  827.         Size(185, 16);
  828.         Style("TRANSPARENT");
  829.         NotifyParent("Button::Press", "PressCommand9");
  830.  
  831.         CreateControl("Key", "STATIC")
  832.         {
  833.             ColorGroup("COMMANDTEXT");
  834.             Pos(40, 0);
  835.             Size(20, 16);
  836.             Image("colorize.tga", 0, 0);
  837.             Font("MEDIUM");
  838.             JustifyText("RIGHT");
  839.             Text("9");
  840.         }
  841.  
  842.         CreateControl("Text", "STATIC")
  843.         {
  844.             ColorGroup("COMMANDTEXT");
  845.             Pos(65, 0);
  846.             Size(120, 16);
  847.             Image("colorize.tga", 7, 0);
  848.             Font("SMALL");
  849.             JustifyText("LEFT");
  850.  
  851.             CreateControl("Cost", "STATIC")
  852.             {
  853.                 Style("TRANSPARENT");
  854.                 Geom("RIGHT");
  855.                 Pos(-8, 0);
  856.                 Size(32, 16);
  857.                 Font("TINY");
  858.                 JustifyText("RIGHT");
  859.             }
  860.         }
  861.     }
  862.  
  863.     OnEvent("PressCancel")
  864.     {
  865.         Cmd("control.command.cancel");
  866.     }
  867.  
  868.     OnEvent("PressCommand0")
  869.     {
  870.         Cmd("control.command.mode0");
  871.     }
  872.  
  873.     OnEvent("PressCommand1")
  874.     {
  875.         Cmd("control.command.mode1");
  876.     }
  877.  
  878.     OnEvent("PressCommand2")
  879.     {
  880.         Cmd("control.command.mode2");
  881.     }
  882.  
  883.     OnEvent("PressCommand3")
  884.     {
  885.         Cmd("control.command.mode3");
  886.     }
  887.  
  888.     OnEvent("PressCommand4")
  889.     {
  890.         Cmd("control.command.mode4");
  891.     }
  892.  
  893.     OnEvent("PressCommand5")
  894.     {
  895.         Cmd("control.command.mode5");
  896.     }
  897.  
  898.     OnEvent("PressCommand6")
  899.     {
  900.         Cmd("control.command.mode6");
  901.     }
  902.  
  903.     OnEvent("PressCommand7")
  904.     {
  905.         Cmd("control.command.mode7");
  906.     }
  907.  
  908.     OnEvent("PressCommand8")
  909.     {
  910.         Cmd("control.command.mode8");
  911.     }
  912.  
  913.     OnEvent("PressCommand9")
  914.     {
  915.         Cmd("control.command.mode9");
  916.     }
  917. }
  918.  
  919. CreateControl("RequirePopup", "LISTBOX")
  920. {
  921.     Pos(200, 40);
  922.     Size(100, 50);
  923.     CellSize(100, 12);
  924.     BorderSize(5);
  925.     Font("SMALL");
  926.     Style("INERT", "NOSELECTION");
  927.  
  928.     ItemConfig()
  929.     {
  930.         Style("TRANSPARENT", "INERT");
  931.     }
  932. }
  933.